package RadianceM.DistributionSystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(
        name = "BunkComment",
        title = "床位评论表",
        description = ""
)
@TableName(value = "all_bunk_comment")
public class BunkComment {

    @Schema(title = "床位评论id", description = "")
    @TableId(value = "bunk_comment_id")
    private Long id;

    @Schema(title = "床位id", description = "")
    @TableField(value = "bunk_id")
    private Long bunkId;

    @Schema(title = "用户id", description = "")
    @TableField(value = "user_id")
    private Long userId;

    @Schema(title = "评论内容", description = "")
    @TableField(value = "comment_content")
    private String content;

    @Schema(title = "评论时间", description = "")
    @TableField(value = "comment_time")
    private Date time;

    @Schema(title = "回复对象", description = "")
    @TableField(value = "comment_parent")
    private Long parent;
}
